  //
//  LFBasicViewController.m
//  QingDaoCommunity
//
//  Created by 李学林 on 15/11/21.
//  Copyright © 2015年 teteTechnology. All rights reserved.
//

#import "LFBasicViewController.h"
#import "MBProgressHUD.h"


@interface LFBasicViewController ()
{

    MBProgressHUD *MB;
}
@end

@implementation LFBasicViewController

- (void)viewDidLoad {
    [super viewDidLoad];
//
//    self.view.backgroundColor = [UIColor colorWithRed:rand()%255/255.0 green:rand()%255/255.0 blue:rand()%255/255.0 alpha:1];

} 

- (void)showLoadViewWithMessage:(NSString *)message{



}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)showLoadView{

     MB = [[MBProgressHUD alloc]initWithView:self.view];
    
    [MB show:YES];
    
    [self.view addSubview:MB];


}

- (void)showToastWithMessage:(NSString *)message{


//    [self.view makeToast:message];


}

- (void)dissmissLoadView{


    if (MB) {
        
        [MB removeFromSuperview];
        [MB hide:YES];
        MB = nil;
    
    }

}

@end
